<!DOCTYPE HTML>
<html lang="en-US">

<head>
	
<title>
	<?php if (is_home()) { echo bloginfo('name');
	} elseif (is_404()) {
	echo '404 Not Found';
	} elseif (is_category()) {
	echo 'Category:'; wp_title('');
	} elseif (is_search()) {
	echo 'Search Results';
	} elseif ( is_day() || is_month() || is_year() ) {
	echo 'Archives:'; wp_title('');
	} else {
	echo wp_title('');
	}
	?>
</title>

<meta charset="UTF-8">
<meta name="description" content="<?php bloginfo('description') ?>" />
<?php if(is_search()) {?>
<meta name="robots" content="noindex, nofollow" /> 
<?php }?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/css/layout.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/css/nivo.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/css/jcarousel.css" type="text/css" media="screen" />

<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/css/contact.css" />
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/css/ie.css" media="screen" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/css/ie8.css" media="screen" />
<![endif]-->
<style type="text/css">
body {
	background-image:url(<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/images/<?php echo get_option('of_background'); ?>.jpg);
}

h2 a {
	color:#FFF;
}

#header {
	background-image:url(<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/images/<?php echo get_option('of_background'); ?>.jpg);
}
</style>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />



<?php if ( get_option('of_logo40') !='' ) {?>
<style type="text/css">

#logo img {
	padding: 0;
	margin: 0;
	margin-top: -10px;
}

.borderline {
	padding-top:152px;
}

#portfolio {
	padding-top:2px;
	*padding-top:152px;
}


</style>
<?php } elseif ( get_option('of_logo70') !='' ) {?>
<style type="text/css">


.borderline {
	padding-top:182px;
}


#logo img {
	padding: 0;
	margin: 0;
	margin-top: -10px;
}

#portfolio {
	padding-top:30px;
	*padding-top:182px;
}
</style>
<?php } elseif ( get_option('of_logo100') !='' ) {?>
<style type="text/css">

#header {
	height:125px;
}

#logo img {
	margin: 0;
	padding: 0;
	margin-top: -10px;
}

.borderline {
	padding-top:212px;
}

#portfolio {
	padding-top:62px;
	*padding-top:212px;
}
</style>
<?php } else {?>
<?php }?>

<?php if ( get_option('of_custom_css') !='' ) {?>
<style type="text/css">
<?php echo get_option('of_custom_css'); ?>
</style>
<?php }?>

		<?php wp_head(); ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery.quicksand.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery.easing.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/cufon.yui.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/titillium.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/list.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery.jcarousel.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/twitter.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/zoombox.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery.blend.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/jScrollPane.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/js/custom.js"></script>

<script type="text/javascript">
		Cufon.replace('h1, h2, h3, h4, h5, h6, .dropcap, .dropcap2');
</script>

<script type="text/javascript">
		getTwitters('twitter', {
        id: '<?php echo get_option('of_twitter'); ?>', 
        count: 1, 
        enableLinks: true, 
        ignoreReplies: false,
        template: '<span class="twitterPrefix"><span class="twitterStatus">%text%</span> <em class="twitterTime"><a href="http://twitter.com/%user_screen_name%">@%user_screen_name%</a> <a href="http://twitter.com/%user_screen_name%/statuses/%id%">- %time%</a></em>',
        newwindow: true
    });
</script>

<script type="text/javascript">

$(window).load(function() {
	$('#sliderholder').nivoSlider({
		effect:'<?php if ( get_option('of_nivo_effect') !='' ) {?><?php echo get_option('of_nivo_effect'); ?><?php } else {?>random<?php }?>',
		slices:<?php if ( get_option('of_nivo_slices') !='' ) {?><?php echo get_option('of_nivo_slices'); ?><?php } else {?>20<?php }?>,
		animSpeed:<?php if ( get_option('of_nivo_speed') !='' ) {?><?php echo get_option('of_nivo_speed'); ?><?php } else {?>1000<?php }?>,
		pauseTime:<?php if ( get_option('of_nivo_timeout') !='' ) {?><?php echo get_option('of_nivo_timeout'); ?><?php } else {?>4000<?php }?>,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:true, //1,2,3...
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:<?php if ( get_option('of_nivo_pause') !='' ) {?><?php echo get_option('of_nivo_pause'); ?><?php } else {?>true<?php }?>, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.5 //Universal caption opacity
	});
});
</script>
<script type="text/javascript">
$(function() {
			if ($('#sliderholder-cycle').length) {
			jQuery('#sliderholder-cycle').cycle({
				fx: 'fade',
				pager: '.slidernav',
				prev:    '.sliderprev',
        		next:    '.slidernext',
				speed: <?php if ( get_option('of_slider_speed') !='' ) {?><?php echo get_option('of_slider_speed'); ?><?php } else {?>1000<?php }?>,
				timeout:<?php if ( get_option('of_slider_timeout') !='' ) {?><?php echo get_option('of_slider_timeout'); ?><?php } else {?>0<?php }?>,  // milliseconds between slide transitions (0 to disable auto advance
				pagerEvent: 'click',
				requeueOnImageNotLoaded: true,
    			pause: <?php if ( get_option('of_slider_pause') !='' ) {?><?php echo get_option('of_slider_pause'); ?><?php } else {?>1<?php }?>, //Stop animation while hovering
    			cleartype: 1
});
			jQuery('#sliderholder-cycle').css("display", "block");
			jQuery('.slidernav').css("display", "block");
			}
}); 

</script>
<script type="text/javascript">
$(document).ready(function(){
zoombox.FLVPlayer = "<?php bloginfo('template_url'); ?>/style/js/zoombox/FLVplayer.swf",   // URL of the FLV Player
zoombox.MP3Player = "<?php bloginfo('template_url'); ?>/style/js/zoombox/MP3player.swf"  // URL of the MP3 Player
});
</script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/style/<?php echo get_option('of_style'); ?>/css/cufonsettings.js"></script>
<script type="text/javascript">  
        
$(document).ready(function() {
	
    $("#ajax-contact-form").submit(function() {
        $('#load').append('<center><img src="ajax-loader.gif" alt="Currently Loading" id="loading" /></center>');

        var fem = $(this).serialize(),
			note = $('#note');
	
        $.ajax({
            type: "POST",
            url: "<?php bloginfo('template_url'); ?>/contact/contact.php",
            data: fem,
            success: function(msg) {
				if ( note.height() ) {			
					note.slideUp(1000, function() { $(this).hide(); });
				} 
				else note.hide();

				$('#loading').fadeOut(300, function() {
					$(this).remove();

					// Message Sent? Show the 'Thank You' message and hide the form
					result = (msg === 'OK') ? '<div class="success">Your message has been sent. Thank you!</div>' : msg;

					var i = setInterval(function() {
						if ( !note.is(':visible') ) {
							note.html(result).slideDown(1000);
							clearInterval(i);
						}
					}, 40);    
				}); // end loading image fadeOut
            }
        });

        return false;
    });
});


</script>
	</head>

	<body>
	
		<!-- Begin Wrapper -->
<div id="wrapper">
  <!-- Begin Header -->
  <div id="header">
    <div id="logo">
<h1 class="shadow"><a href="<?php bloginfo('url'); ?>">
      	
      	<?php if ( get_option('of_logo') !='' ) {?>
      		<?php echo get_option('of_logo'); ?>
      	<?php } else {?>
      	<?php if ( get_option('of_logo40') !='' ) {?>
        	<img src="<?php echo get_option('of_logo40'); ?>" />

<?php } elseif ( get_option('of_logo70') !='' ) {?>
<img src="<?php echo get_option('of_logo70'); ?>" />

        <?php } else {?>
<img src="<?php echo get_option('of_logo100'); ?>" />
        <?php }?>
<?php }?>
      	</a></h1>
      	

      	
    </div>
    <div id="menu">
    <?php locus_nav(); ?>
    </div>
  </div><!-- End Header -->